Properly propagate expand flags
authorMatthias Clasen <mclasen@redhat.com>
Wed, 20 Oct 2010 21:51:57 +0000 (23:51 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 21 Oct 2010 09:14:26 +0000 (11:14 +0200)
When showing a widget that already has need_compute_expand set,
we need to queue the recomputation on the parent.

gtk/gtkwidget.c

index 474f55a26548e0e60078cc94c2917e8daef6fc19..49420c9e0a193ea66239531a7d1526ae5c01ecab 100644 (file)
@@ -3810,7 +3810,8 @@ gtk_widget_show (GtkWidget *widget)
           widget->priv->computed_hexpand ||
           widget->priv->computed_vexpand)
         {
-          gtk_widget_queue_compute_expand (widget);
+          if (widget->priv->parent != NULL)
+            gtk_widget_queue_compute_expand (widget->priv->parent);
         }
 
       g_signal_emit (widget, widget_signals[SHOW], 0);